<?php


namespace app\admin\controller\vg;


\think\Loader::import('controller/Controller', \think\Config::get('traits_path'), EXT);

use app\admin\Controller;
use app\common\service\VillagesService;

class Villages extends Controller
{
    use \app\admin\traits\controller\Controller;

    public function index()
    {
        $param = $this->request->param();
        $service = new VillagesService(); //数据处理
        $service->searchPage($this->view, $param);
        return $this->view->fetch();
    }
}
